package com.google.code.sip.ucenter.dao.mongo;

import com.google.code.sip.core.dao.mongo.GenericMongoDao;
import com.google.code.sip.ucenter.dao.AccountDao;
import com.google.code.sip.ucenter.model.Account;
import com.google.code.sip.ucenter.model.User;

public class AccountDaoImpl extends GenericMongoDao<Account, String> implements
		AccountDao {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.google.code.sip.ucenter.dao.mongo.AccountDao#getByUser(com.google.code
	 * .ucenter.model.User)
	 */
	public Account getByUser(User user) {
		return getByProperty("user", user);
	}
}
